Skip to main content

dontResize

Type​

property

Summary​

Specifies whether an irregular polygon graphic is resized when its vertexes are changed.

Syntax​

set the dontResize of <graphic> to {true | false}

Description​

Use the dontResize property to automatically resize and reposition a graphic when you set its points property.

You can reshape a graphic whose style property is set to polygon by changing its points or relativePoints property.

If you change the graphic's points or relativePoints property, and the graphic's dontResize property is set to false, the graphic is resized and repositioned if necessary to accommodate the new shape.

If you change the points or relativePoints and the dontResize is false, the graphic is not resized to fit the new set of vertexes. This may result in parts of the shape being cut off at the boundaries of the graphic.

Examples​

set the dontResize of graphic 12 to true

Value​

NameTypeDescription

value

bool

The dontResize of a graphic is true or false. By default, the dontResize property of newly created graphics is set to false.

object: graphic

property: points, style, relativePoints

command: drag

glossary: vertex, property

keyword: polygon, graphic

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?